package com.upcode.weighing.admin.utils;

import java.util.HashMap;
import java.util.Map;

public class UserIdTypeUtil {

    private Map<String,String> map;

    private static UserIdTypeUtil instance;

    public UserIdTypeUtil(){
        map =  new HashMap<String,String>();
        map.put("201","统一社会信用代码证书");
        map.put("202","组织机构代码证");
        map.put("203","营业执照");
        map.put("204","事业单位法人证书");
        map.put("205","社会团体法人登记证书");
        map.put("206","律师事务所执业许可证");
        map.put("101","身份证");
        map.put("102","护照");
        map.put("103","港澳居民通行证");
        map.put("104","台湾居民通行证");
        map.put("105","军官证");
        map.put("106","武警警察身份证");
    }

    public static UserIdTypeUtil getInstance(){
        if(instance == null){
            instance = new UserIdTypeUtil();
        }
        return instance;
    }

    public String getUserIdTypeDesc(int idType){
        return map.get(String.valueOf(idType));
    }

}
